package com.esyoga.yoyoga.service.impl;

import com.esyoga.yoyoga.mapper.TStudentMapper;
import com.esyoga.yoyoga.pojo.TStudent;
import com.esyoga.yoyoga.pojo.TStudentExample;
import com.esyoga.yoyoga.service.StudentWalletService;
import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;
@Data
@Service("walletService")
public class StudentWalletServiceImpl implements StudentWalletService {

    @Resource
    TStudentMapper tStudentMapper;


    @Override
    public List<TStudent> showBalance(Integer sId) {
        TStudentExample example = new TStudentExample();
        TStudentExample.Criteria criteria = example.createCriteria();
        criteria.andSIdEqualTo(sId);
        return  tStudentMapper.selectByExample(example);
    }
}
